package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.wemwdia.dto.WmLoginDto;
import com.zhentao.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/login")
public class LoginController {

    @Autowired
    private WmUserService wmUserService;

    @PostMapping("in")
    public ResponseResult login(@RequestBody WmLoginDto wmLoginDto){
        return wmUserService.login(wmLoginDto);
    }
}
